<?php

namespace app\admin\validate;

use think\Validate;

class SysUser extends Validate
{

    protected $rule = [
        'nick_name'=> 'require',
        'user_name'=> 'require',
        'password'=>'require',
        'status'=>["require","in"=>"0,1"]
    ];

    protected $message = [
        'nick_name'=> '用户昵称必须',
        'user_name'=>'用户名称必须',
        'password'=>'密码必须',
        'status.require'=>'状态必须',
        'status.in'=>'状态数值错误',
    ];
}
